package lancooUpLoad;

import com.example.hyznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import java.util.List;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2017/9/5/005.
 */

public class SubmitWrongParam extends BaseApi {

    private List<SubmitDataWrongJson> mListSubmitDataWrongJson;
    public List<SubmitDataWrongJson> getListSubmitDataWrongJson() {
        return mListSubmitDataWrongJson;
    }

    public void setListSubmitDataWrongJson(List<SubmitDataWrongJson> mListSubmitDataWrongJson) {
        this.mListSubmitDataWrongJson = mListSubmitDataWrongJson;
    }


    public SubmitWrongParam(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);
        return httpPostServer.submitDataWrongJson(PaperInfor.PaperAnsweredItemCount,
                PaperInfor.PaperDuration,PaperInfor.schoolId,PaperInfor.term, mListSubmitDataWrongJson);
    }
}